package com.yaorange.nongjt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yaorange.nongjt.mapper.NjtPrinterAuthenticateMapper;
import com.yaorange.nongjt.domain.NjtPrinterAuthenticate;
import com.yaorange.nongjt.service.INjtPrinterAuthenticateService;

/**
 * 打印机认证Service业务层处理
 * 
 * @author zly
 * @date 2025-03-07
 */
@Service
public class NjtPrinterAuthenticateServiceImpl implements INjtPrinterAuthenticateService 
{
    @Autowired
    private NjtPrinterAuthenticateMapper njtPrinterAuthenticateMapper;

    /**
     * 查询打印机认证
     * 
     * @param id 打印机认证主键
     * @return 打印机认证
     */
    @Override
    public NjtPrinterAuthenticate selectNjtPrinterAuthenticateById(Long id)
    {
        return njtPrinterAuthenticateMapper.selectNjtPrinterAuthenticateById(id);
    }

    /**
     * 查询打印机认证列表
     * 
     * @param njtPrinterAuthenticate 打印机认证
     * @return 打印机认证
     */
    @Override
    public List<NjtPrinterAuthenticate> selectNjtPrinterAuthenticateList(NjtPrinterAuthenticate njtPrinterAuthenticate)
    {
        return njtPrinterAuthenticateMapper.selectNjtPrinterAuthenticateList(njtPrinterAuthenticate);
    }

    /**
     * 新增打印机认证
     * 
     * @param njtPrinterAuthenticate 打印机认证
     * @return 结果
     */
    @Override
    public int insertNjtPrinterAuthenticate(NjtPrinterAuthenticate njtPrinterAuthenticate)
    {
        return njtPrinterAuthenticateMapper.insertNjtPrinterAuthenticate(njtPrinterAuthenticate);
    }

    /**
     * 修改打印机认证
     * 
     * @param njtPrinterAuthenticate 打印机认证
     * @return 结果
     */
    @Override
    public int updateNjtPrinterAuthenticate(NjtPrinterAuthenticate njtPrinterAuthenticate)
    {
        return njtPrinterAuthenticateMapper.updateNjtPrinterAuthenticate(njtPrinterAuthenticate);
    }

    /**
     * 批量删除打印机认证
     * 
     * @param ids 需要删除的打印机认证主键
     * @return 结果
     */
    @Override
    public int deleteNjtPrinterAuthenticateByIds(Long[] ids)
    {
        return njtPrinterAuthenticateMapper.deleteNjtPrinterAuthenticateByIds(ids);
    }

    /**
     * 删除打印机认证信息
     * 
     * @param id 打印机认证主键
     * @return 结果
     */
    @Override
    public int deleteNjtPrinterAuthenticateById(Long id)
    {
        return njtPrinterAuthenticateMapper.deleteNjtPrinterAuthenticateById(id);
    }
}
